package org.dizena.base.avo.req;

import lombok.Data;

@Data
public class JqGridReq
{
    /**
     * 搜索字段
     */
    private String searchField;
    /**
     * 搜索字串
     */
    private String searchString;
    /**
     * 每页数据大小
     */
    private Integer rows = 20;
    /**
     * 排序字段
     */
    private String sidx;
    /**
     * 排序方向ASC DESC
     */
    private String sord;
    /**
     * 页码
     */
    private Long page = 1L;

    public Integer getSize()
    {
        return this.getRows();
    }

    public String getAscDesc()
    {
        return this.getSord();
    }

    public String getSortField()
    {
        return this.getSidx();
    }
}
